{% extends "base.html" %}

{% block head-title %}{{algorithm.algorithm_name}}{% endblock %}

{% block title %}{{algorithm.algorithm_name}}{% endblock %} 

{% block content %}
<form action="/regressor/configure_parameters/" method="post" class="uk-form" id="form1"
					onsubmit="return true;">
	{%csrf_token%}
	<input type="hidden" name="instance_id" value="{{algorithm.instance_id}}"/>
	<fieldset>
		<legend>配置参数(3/4)</legend>
			{% ifequal algorithm.algorithm_name "多项式回归" %}
				<div class="uk-form-row">
					<div class="uk-form-controls">
						设定阶数:<input type="number" value="2" name="degree" />
					</div>
				</div>
			{% endifequal %}
		<div class="uk-form-row">
			<div class="uk-form-controls">
				训练样本:<input type="number" value="80" name="train_size" />(%)
			</div>
		</div>
		<div class="uk-form-row">
			<div class="uk-form-controls">
				测试样本:<input type="number" value="20" name="test_size" />(%)
			</div>
		</div>
	</fieldset>
	
	<div class="uk-form-row" style="margin-top:5px;">
		<a href="javascript:history.go(-1);" class="uk-button">上一步</a>
		<input class="uk-button uk-button-primary" type="submit"
			value="下一步" style="float: right;">
	</div>
</form>
{% endblock %}